home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1986-03-29 | 4.3 KB | [ TEXT/QED1]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat Mar 29 14:00:10 1986, modified Sat Mar 29 14:00:10 1986, creator 'QED1', type ASCII, 3799 bytes "palette.c" , at 0xf57 380 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ QED1]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 09 70 61 6c 65 74 74 | 65 2e 63 00 00 00 00 00 |..palett|e.c.....| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 51 45 44 | 31 01 00 00 00 00 00 00 |.TEXTQED|1.......| |00000050| 00 00 00 00 00 0e d7 00 | 00 01 7c 9a b1 ec 3a 9a |........|..|...:.| |00000060| b1 ec 3a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..:.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cb 24 00 00 |........|.....$..| |00000080| 2f 2a 0d 20 2a 20 50 61 | 6c 65 74 74 65 20 4c 69 |/*. * Pa|lette Li| |00000090| 73 74 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 0d 20 |st Appli|cation. | |000000a0| 2a 2f 0d 0d 23 69 6e 63 | 6c 75 64 65 20 3c 65 76 |*/..#inc|lude <ev| |000000b0| 65 6e 74 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ent.h>.#|include | |000000c0| 3c 69 6e 69 74 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |<inits.h|>.#inclu| |000000d0| 64 65 20 3c 6c 69 73 74 | 2e 68 3e 0d 23 69 6e 63 |de <list|.h>.#inc| |000000e0| 6c 75 64 65 20 3c 6d 65 | 6d 6f 72 79 2e 68 3e 0d |lude <me|mory.h>.| |000000f0| 23 69 6e 63 6c 75 64 65 | 20 3c 6d 65 6e 75 2e 68 |#include| <menu.h| |00000100| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 70 61 63 6b |>.#inclu|de <pack| |00000110| 61 67 65 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |ages.h>.|#include| |00000120| 20 3c 71 75 69 63 6b 64 | 72 61 77 2e 68 3e 0d 23 | <quickd|raw.h>.#| |00000130| 69 6e 63 6c 75 64 65 20 | 3c 72 65 73 6f 75 72 63 |include |<resourc| |00000140| 65 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 73 |e.h>.#in|clude <s| |00000150| 65 67 6d 65 6e 74 2e 68 | 3e 0d 23 69 6e 63 6c 75 |egment.h|>.#inclu| |00000160| 64 65 20 3c 74 6f 6f 6c | 75 74 69 6c 2e 68 3e 0d |de <tool|util.h>.| |00000170| 23 69 6e 63 6c 75 64 65 | 20 3c 77 69 6e 64 6f 77 |#include| <window| |00000180| 2e 68 3e 0d 0d 23 64 65 | 66 69 6e 65 20 4d 45 4e |.h>..#de|fine MEN| |00000190| 55 42 41 52 20 32 35 36 | 0d 23 64 65 66 69 6e 65 |UBAR 256|.#define| |000001a0| 20 57 49 4e 44 4f 57 20 | 32 35 36 0d 23 64 65 66 | WINDOW |256.#def| |000001b0| 69 6e 65 20 49 43 4f 4e | 20 32 35 36 0d 23 64 65 |ine ICON| 256.#de| |000001c0| 66 69 6e 65 20 4c 44 45 | 46 20 32 35 36 0d 23 64 |fine LDE|F 256.#d| |000001d0| 65 66 69 6e 65 20 47 52 | 41 42 42 45 52 20 32 35 |efine GR|ABBER 25| |000001e0| 36 0d 0d 23 64 65 66 69 | 6e 65 20 57 49 44 54 48 |6..#defi|ne WIDTH| |000001f0| 20 32 36 0d 23 64 65 66 | 69 6e 65 20 48 45 49 47 | 26.#def|ine HEIG| |00000200| 48 54 20 32 32 0d 23 64 | 65 66 69 6e 65 20 52 4f |HT 22.#d|efine RO| |00000210| 57 53 20 31 30 0d 23 64 | 65 66 69 6e 65 20 43 4f |WS 10.#d|efine CO| |00000220| 4c 55 4d 4e 53 20 32 0d | 0d 23 64 65 66 69 6e 65 |LUMNS 2.|.#define| |00000230| 20 50 4f 49 4e 54 28 74 | 68 65 50 74 29 20 2a 28 | POINT(t|hePt) *(| |00000240| 6c 6f 6e 67 20 2a 29 28 | 26 74 68 65 50 74 29 0d |long *)(|&thePt).| |00000250| 0d 57 69 6e 64 6f 77 50 | 74 72 20 70 61 6c 65 74 |.WindowP|tr palet| |00000260| 74 65 3b 0d 0d 6d 61 69 | 6e 28 29 0d 09 7b 0d 09 |te;..mai|n()..{..| |00000270| 4d 61 63 49 6e 69 74 28 | 29 3b 0d 09 4d 65 6e 75 |MacInit(|);..Menu| |00000280| 49 6e 69 74 28 29 3b 0d | 09 50 61 6c 65 49 6e 69 |Init();.|.PaleIni| |00000290| 74 28 29 3b 0d 09 66 6f | 72 20 28 3b 3b 29 0d 09 |t();..fo|r (;;)..| |000002a0| 09 45 76 65 6e 74 44 6f | 4f 6e 65 28 29 3b 0d 09 |.EventDo|One();..| |000002b0| 7d 0d 0d 4d 61 63 49 6e | 69 74 28 29 0d 09 7b 0d |}..MacIn|it()..{.| |000002c0| 09 49 6e 69 74 47 72 61 | 66 28 26 74 68 65 50 6f |.InitGra|f(&thePo| |000002d0| 72 74 29 3b 0d 09 49 6e | 69 74 46 6f 6e 74 73 28 |rt);..In|itFonts(| |000002e0| 29 3b 0d 09 49 6e 69 74 | 57 69 6e 64 6f 77 73 28 |);..Init|Windows(| |000002f0| 29 3b 0d 09 49 6e 69 74 | 4d 65 6e 75 73 28 29 3b |);..Init|Menus();| |00000300| 0d 09 54 45 49 6e 69 74 | 28 29 3b 0d 09 49 6e 69 |..TEInit|();..Ini| |00000310| 74 44 69 61 6c 6f 67 73 | 28 30 6c 29 3b 0d 09 46 |tDialogs|(0l);..F| |00000320| 6c 75 73 68 45 76 65 6e | 74 73 28 65 76 65 72 79 |lushEven|ts(every| |00000330| 45 76 65 6e 74 2c 20 30 | 29 3b 0d 09 49 6e 69 74 |Event, 0|);..Init| |00000340| 43 75 72 73 6f 72 28 29 | 3b 0d 09 7d 0d 0d 4d 65 |Cursor()|;..}..Me| |00000350| 6e 75 49 6e 69 74 28 29 | 0d 09 7b 0d 09 53 65 74 |nuInit()|..{..Set| |00000360| 4d 65 6e 75 42 61 72 28 | 47 65 74 4e 65 77 4d 42 |MenuBar(|GetNewMB| |00000370| 61 72 28 4d 45 4e 55 42 | 41 52 29 29 3b 0d 09 44 |ar(MENUB|AR));..D| |00000380| 72 61 77 4d 65 6e 75 42 | 61 72 28 29 3b 0d 09 7d |rawMenuB|ar();..}| |00000390| 0d 0d 70 61 73 63 61 6c | 20 76 6f 69 64 20 49 63 |..pascal| void Ic| |000003a0| 6f 6e 4c 69 73 74 44 65 | 66 28 6c 4d 65 73 73 61 |onListDe|f(lMessa| |000003b0| 67 65 2c 20 6c 53 65 6c | 65 63 74 2c 20 6c 52 65 |ge, lSel|ect, lRe| |000003c0| 63 74 2c 20 6c 43 65 6c | 6c 2c 20 6c 44 61 74 61 |ct, lCel|l, lData| |000003d0| 4f 66 66 73 65 74 2c 20 | 6c 44 61 74 61 4c 65 6e |Offset, |lDataLen| |000003e0| 2c 20 6c 48 61 6e 64 6c | 65 29 0d 09 69 6e 74 20 |, lHandl|e)..int | |000003f0| 6c 4d 65 73 73 61 67 65 | 3b 0d 09 69 6e 74 20 6c |lMessage|;..int l| |00000400| 53 65 6c 65 63 74 3b 0d | 09 52 65 63 74 20 2a 6c |Select;.|.Rect *l| |00000410| 52 65 63 74 3b 0d 09 6c | 6f 6e 67 20 6c 43 65 6c |Rect;..l|ong lCel| |00000420| 6c 3b 0d 09 69 6e 74 20 | 6c 44 61 74 61 4f 66 66 |l;..int |lDataOff| |00000430| 73 65 74 3b 0d 09 69 6e | 74 20 6c 44 61 74 61 4c |set;..in|t lDataL| |00000440| 65 6e 3b 0d 09 4c 69 73 | 74 48 61 6e 64 6c 65 20 |en;..Lis|tHandle | |00000450| 6c 48 61 6e 64 6c 65 3b | 0d 09 7b 0d 09 63 68 61 |lHandle;|..{..cha| |00000460| 72 20 74 61 67 3b 0d 09 | 42 69 74 4d 61 70 20 69 |r tag;..|BitMap i| |00000470| 63 6f 6e 42 69 74 73 3b | 0d 09 0d 09 42 6c 6f 63 |conBits;|....Bloc| |00000480| 6b 4d 6f 76 65 28 6c 52 | 65 63 74 2c 20 26 69 63 |kMove(lR|ect, &ic| |00000490| 6f 6e 42 69 74 73 2e 62 | 6f 75 6e 64 73 2c 20 28 |onBits.b|ounds, (| |000004a0| 6c 6f 6e 67 29 20 73 69 | 7a 65 6f 66 28 52 65 63 |long) si|zeof(Rec| |000004b0| 74 29 29 3b 0d 09 73 77 | 69 74 63 68 20 28 6c 4d |t));..sw|itch (lM| |000004c0| 65 73 73 61 67 65 29 0d | 09 09 7b 0d 09 09 63 61 |essage).|..{...ca| |000004d0| 73 65 20 6c 49 6e 69 74 | 4d 73 67 3a 0d 09 09 09 |se lInit|Msg:....| |000004e0| 62 72 65 61 6b 3b 0d 09 | 09 09 0d 09 09 63 61 73 |break;..|.....cas| |000004f0| 65 20 6c 44 72 61 77 4d | 73 67 3a 0d 09 09 09 69 |e lDrawM|sg:....i| |00000500| 66 20 28 6c 44 61 74 61 | 4c 65 6e 29 0d 09 09 09 |f (lData|Len)....| |00000510| 09 7b 0d 09 09 09 09 74 | 61 67 20 3d 20 2a 28 63 |.{.....t|ag = *(c| |00000520| 68 61 72 20 2a 29 20 28 | 2a 6c 48 61 6e 64 6c 65 |har *) (|*lHandle| |00000530| 29 2d 3e 63 65 6c 6c 73 | 3b 0d 09 09 09 09 48 4c |)->cells|;.....HL| |00000540| 6f 63 6b 28 28 2a 6c 48 | 61 6e 64 6c 65 29 2d 3e |ock((*lH|andle)->| |00000550| 63 65 6c 6c 73 29 3b 0d | 09 09 09 09 69 63 6f 6e |cells);.|....icon| |00000560| 42 69 74 73 2e 62 61 73 | 65 41 64 64 72 20 3d 20 |Bits.bas|eAddr = | |00000570| 2a 28 2a 6c 48 61 6e 64 | 6c 65 29 2d 3e 63 65 6c |*(*lHand|le)->cel| |00000580| 6c 73 20 2b 20 6c 44 61 | 74 61 4f 66 66 73 65 74 |ls + lDa|taOffset| |00000590| 3b 0d 09 09 09 09 69 63 | 6f 6e 42 69 74 73 2e 72 |;.....ic|onBits.r| |000005a0| 6f 77 42 79 74 65 73 20 | 3d 20 34 3b 0d 09 09 09 |owBytes |= 4;....| |000005b0| 09 43 6f 70 79 42 69 74 | 73 28 26 69 63 6f 6e 42 |.CopyBit|s(&iconB| |000005c0| 69 74 73 2c 20 26 74 68 | 65 50 6f 72 74 2d 3e 70 |its, &th|ePort->p| |000005d0| 6f 72 74 42 69 74 73 2c | 20 6c 52 65 63 74 2c 20 |ortBits,| lRect, | |000005e0| 6c 52 65 63 74 2c 20 73 | 72 63 43 6f 70 79 2c 20 |lRect, s|rcCopy, | |000005f0| 30 6c 29 3b 0d 09 09 09 | 09 2a 28 63 68 61 72 20 |0l);....|.*(char | |00000600| 2a 29 20 28 2a 6c 48 61 | 6e 64 6c 65 29 2d 3e 63 |*) (*lHa|ndle)->c| |00000610| 65 6c 6c 73 20 3d 20 74 | 61 67 3b 0d 09 09 09 09 |ells = t|ag;.....| |00000620| 7d 0d 09 09 09 65 6c 73 | 65 0d 09 09 09 09 45 72 |}....els|e.....Er| |00000630| 61 73 65 52 65 63 74 28 | 6c 52 65 63 74 29 3b 0d |aseRect(|lRect);.| |00000640| 09 09 09 69 66 20 28 21 | 2a 28 63 68 61 72 20 2a |...if (!|*(char *| |00000650| 29 20 26 6c 53 65 6c 65 | 63 74 29 0d 09 09 09 09 |) &lSele|ct).....| |00000660| 62 72 65 61 6b 3b 0d 09 | 09 09 0d 09 09 63 61 73 |break;..|.....cas| |00000670| 65 20 6c 48 69 6c 69 74 | 65 4d 73 67 3a 0d 09 09 |e lHilit|eMsg:...| |00000680| 09 69 63 6f 6e 42 69 74 | 73 2e 62 6f 75 6e 64 73 |.iconBit|s.bounds| |00000690| 2e 72 69 67 68 74 2d 2d | 3b 20 69 63 6f 6e 42 69 |.right--|; iconBi| |000006a0| 74 73 2e 62 6f 75 6e 64 | 73 2e 62 6f 74 74 6f 6d |ts.bound|s.bottom| |000006b0| 2d 2d 3b 0d 09 09 09 49 | 6e 76 65 72 74 52 65 63 |--;....I|nvertRec| |000006c0| 74 28 26 69 63 6f 6e 42 | 69 74 73 2e 62 6f 75 6e |t(&iconB|its.boun| |000006d0| 64 73 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |ds);....|break;..| |000006e0| 09 09 0d 09 09 63 61 73 | 65 20 6c 43 6c 6f 73 65 |.....cas|e lClose| |000006f0| 4d 73 67 3a 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |Msg:....|break;..| |00000700| 09 7d 0d 09 7d 0d 0d 50 | 61 6c 65 49 6e 69 74 28 |.}..}..P|aleInit(| |00000710| 29 0d 09 7b 0d 09 48 61 | 6e 64 6c 65 20 74 68 65 |)..{..Ha|ndle the| |00000720| 4c 44 45 46 3b 0d 09 52 | 65 63 74 20 74 68 65 56 |LDEF;..R|ect theV| |00000730| 69 65 77 3b 0d 09 52 65 | 63 74 20 74 68 65 42 6f |iew;..Re|ct theBo| |00000740| 75 6e 64 73 3b 0d 09 69 | 6e 74 20 73 63 72 6f 6c |unds;..i|nt scrol| |00000750| 6c 3b 0d 09 50 6f 69 6e | 74 20 74 68 65 53 69 7a |l;..Poin|t theSiz| |00000760| 65 3b 0d 09 4c 69 73 74 | 48 61 6e 64 6c 65 20 74 |e;..List|Handle t| |00000770| 68 65 4c 69 73 74 3b 0d | 09 43 65 6c 6c 20 74 68 |heList;.|.Cell th| |00000780| 65 43 65 6c 6c 3b 0d 09 | 69 6e 74 20 69 64 3b 0d |eCell;..|int id;.| |00000790| 09 48 61 6e 64 6c 65 20 | 74 68 65 49 63 6f 6e 3b |.Handle |theIcon;| |000007a0| 0d 09 0d 09 70 61 6c 65 | 74 74 65 20 3d 20 47 65 |....pale|tte = Ge| |000007b0| 74 4e 65 77 57 69 6e 64 | 6f 77 28 57 49 4e 44 4f |tNewWind|ow(WINDO| |000007c0| 57 2c 20 30 6c 2c 20 2d | 31 6c 29 3b 0d 0d 09 74 |W, 0l, -|1l);...t| |000007d0| 68 65 4c 44 45 46 20 3d | 20 47 65 74 52 65 73 6f |heLDEF =| GetReso| |000007e0| 75 72 63 65 28 27 4c 44 | 45 46 27 2c 20 4c 44 45 |urce('LD|EF', LDE| |000007f0| 46 29 3b 0d 09 2a 28 6c | 6f 6e 67 20 2a 29 20 28 |F);..*(l|ong *) (| |00000800| 2a 74 68 65 4c 44 45 46 | 20 2b 20 32 29 20 3d 20 |*theLDEF| + 2) = | |00000810| 28 6c 6f 6e 67 29 20 26 | 49 63 6f 6e 4c 69 73 74 |(long) &|IconList| |00000820| 44 65 66 3b 0d 09 0d 09 | 53 65 74 52 65 63 74 28 |Def;....|SetRect(| |00000830| 26 74 68 65 42 6f 75 6e | 64 73 2c 20 30 2c 20 30 |&theBoun|ds, 0, 0| |00000840| 2c 20 43 4f 4c 55 4d 4e | 53 2c 20 52 4f 57 53 29 |, COLUMN|S, ROWS)| |00000850| 3b 0d 09 42 6c 6f 63 6b | 4d 6f 76 65 28 26 70 61 |;..Block|Move(&pa| |00000860| 6c 65 74 74 65 2d 3e 70 | 6f 72 74 52 65 63 74 2c |lette->p|ortRect,| |00000870| 20 26 74 68 65 56 69 65 | 77 2c 20 28 6c 6f 6e 67 | &theVie|w, (long| |00000880| 29 20 73 69 7a 65 6f 66 | 28 52 65 63 74 29 29 3b |) sizeof|(Rect));| |00000890| 0d 09 69 66 20 28 73 63 | 72 6f 6c 6c 20 3d 20 28 |..if (sc|roll = (| |000008a0| 74 68 65 56 69 65 77 2e | 62 6f 74 74 6f 6d 20 2d |theView.|bottom -| |000008b0| 20 74 68 65 56 69 65 77 | 2e 74 6f 70 29 20 2f 20 | theView|.top) / | |000008c0| 48 45 49 47 48 54 20 3c | 20 52 4f 57 53 29 0d 09 |HEIGHT <| ROWS)..| |000008d0| 09 74 68 65 56 69 65 77 | 2e 72 69 67 68 74 20 2d |.theView|.right -| |000008e0| 3d 20 31 35 3b 0d 09 53 | 65 74 50 74 28 26 74 68 |= 15;..S|etPt(&th| |000008f0| 65 53 69 7a 65 2c 20 57 | 49 44 54 48 2c 20 48 45 |eSize, W|IDTH, HE| |00000900| 49 47 48 54 29 3b 0d 09 | 74 68 65 4c 69 73 74 20 |IGHT);..|theList | |00000910| 3d 20 4c 4e 65 77 28 26 | 74 68 65 56 69 65 77 2c |= LNew(&|theView,| |00000920| 20 26 74 68 65 42 6f 75 | 6e 64 73 2c 20 50 4f 49 | &theBou|nds, POI| |00000930| 4e 54 28 74 68 65 53 69 | 7a 65 29 2c 20 4c 44 45 |NT(theSi|ze), LDE| |00000940| 46 2c 20 70 61 6c 65 74 | 74 65 2c 20 46 41 4c 53 |F, palet|te, FALS| |00000950| 45 2c 20 46 41 4c 53 45 | 2c 20 46 41 4c 53 45 2c |E, FALSE|, FALSE,| |00000960| 20 73 63 72 6f 6c 6c 20 | 3f 20 54 52 55 45 20 3a | scroll |? TRUE :| |00000970| 20 46 41 4c 53 45 29 3b | 0d 09 53 65 74 57 52 65 | FALSE);|..SetWRe| |00000980| 66 43 6f 6e 28 70 61 6c | 65 74 74 65 2c 20 74 68 |fCon(pal|ette, th| |00000990| 65 4c 69 73 74 29 3b 0d | 09 28 2a 74 68 65 4c 69 |eList);.|.(*theLi| |000009a0| 73 74 29 2d 3e 73 65 6c | 46 6c 61 67 73 20 3d 20 |st)->sel|Flags = | |000009b0| 6c 4f 6e 6c 79 4f 6e 65 | 3b 0d 0d 09 66 6f 72 20 |lOnlyOne|;...for | |000009c0| 28 69 64 20 3d 20 30 3b | 20 69 64 20 3c 20 43 4f |(id = 0;| id < CO| |000009d0| 4c 55 4d 4e 53 20 2a 20 | 52 4f 57 53 3b 20 69 64 |LUMNS * |ROWS; id| |000009e0| 2b 2b 29 0d 09 09 7b 0d | 09 09 53 65 74 50 74 28 |++)...{.|..SetPt(| |000009f0| 26 74 68 65 43 65 6c 6c | 2c 20 69 64 20 25 20 43 |&theCell|, id % C| |00000a00| 4f 4c 55 4d 4e 53 2c 20 | 69 64 20 2f 20 43 4f 4c |OLUMNS, |id / COL| |00000a10| 55 4d 4e 53 29 3b 0d 09 | 09 48 4c 6f 63 6b 28 74 |UMNS);..|.HLock(t| |00000a20| 68 65 49 63 6f 6e 20 3d | 20 47 65 74 49 63 6f 6e |heIcon =| GetIcon| |00000a30| 28 69 64 20 2b 20 49 43 | 4f 4e 29 29 3b 0d 09 09 |(id + IC|ON));...| |00000a40| 4c 53 65 74 43 65 6c 6c | 28 2a 74 68 65 49 63 6f |LSetCell|(*theIco| |00000a50| 6e 2c 20 31 32 38 2c 20 | 50 4f 49 4e 54 28 74 68 |n, 128, |POINT(th| |00000a60| 65 43 65 6c 6c 29 2c 20 | 74 68 65 4c 69 73 74 29 |eCell), |theList)| |00000a70| 3b 0d 09 09 48 55 6e 6c | 6f 63 6b 28 74 68 65 49 |;...HUnl|ock(theI| |00000a80| 63 6f 6e 29 3b 0d 09 09 | 7d 0d 0d 09 53 65 74 50 |con);...|}...SetP| |00000a90| 74 28 26 74 68 65 43 65 | 6c 6c 2c 20 30 2c 20 30 |t(&theCe|ll, 0, 0| |00000aa0| 29 3b 0d 09 4c 53 65 74 | 53 65 6c 65 63 74 28 54 |);..LSet|Select(T| |00000ab0| 52 55 45 2c 20 50 4f 49 | 4e 54 28 74 68 65 43 65 |RUE, POI|NT(theCe| |00000ac0| 6c 6c 29 2c 20 74 68 65 | 4c 69 73 74 29 3b 0d 09 |ll), the|List);..| |00000ad0| 0d 09 4c 44 6f 44 72 61 | 77 28 54 52 55 45 2c 20 |..LDoDra|w(TRUE, | |00000ae0| 74 68 65 4c 69 73 74 29 | 3b 0d 09 53 68 6f 77 57 |theList)|;..ShowW| |00000af0| 69 6e 64 6f 77 28 70 61 | 6c 65 74 74 65 29 3b 0d |indow(pa|lette);.| |00000b00| 09 7d 0d 0d 45 76 65 6e | 74 44 6f 4f 6e 65 28 29 |.}..Even|tDoOne()| |00000b10| 0d 09 7b 0d 09 45 76 65 | 6e 74 52 65 63 6f 72 64 |..{..Eve|ntRecord| |00000b20| 20 74 68 65 45 76 65 6e | 74 3b 0d 09 57 69 6e 64 | theEven|t;..Wind| |00000b30| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 64 6f 77 3b |owPtr th|eWindow;| |00000b40| 0d 09 0d 09 69 66 20 28 | 47 65 74 4e 65 78 74 45 |....if (|GetNextE| |00000b50| 76 65 6e 74 28 65 76 65 | 72 79 45 76 65 6e 74 2c |vent(eve|ryEvent,| |00000b60| 20 26 74 68 65 45 76 65 | 6e 74 29 29 0d 09 09 7b | &theEve|nt))...{| |00000b70| 0d 09 09 73 77 69 74 63 | 68 20 28 74 68 65 45 76 |...switc|h (theEv| |00000b80| 65 6e 74 2e 77 68 61 74 | 29 0d 09 09 09 7b 0d 09 |ent.what|)....{..| |00000b90| 09 09 63 61 73 65 20 6d | 6f 75 73 65 44 6f 77 6e |..case m|ouseDown| |00000ba0| 3a 0d 09 09 09 09 73 77 | 69 74 63 68 20 28 46 69 |:.....sw|itch (Fi| |00000bb0| 6e 64 57 69 6e 64 6f 77 | 28 50 4f 49 4e 54 28 74 |ndWindow|(POINT(t| |00000bc0| 68 65 45 76 65 6e 74 2e | 77 68 65 72 65 29 2c 20 |heEvent.|where), | |00000bd0| 26 74 68 65 57 69 6e 64 | 6f 77 29 29 0d 09 09 09 |&theWind|ow))....| |00000be0| 09 09 7b 0d 09 09 09 09 | 09 63 61 73 65 20 69 6e |..{.....|.case in| |00000bf0| 4d 65 6e 75 42 61 72 3a | 0d 09 09 09 09 09 09 69 |MenuBar:|.......i| |00000c00| 66 20 28 4d 65 6e 75 53 | 65 6c 65 63 74 28 50 4f |f (MenuS|elect(PO| |00000c10| 49 4e 54 28 74 68 65 45 | 76 65 6e 74 2e 77 68 65 |INT(theE|vent.whe| |00000c20| 72 65 29 29 29 0d 09 09 | 09 09 09 09 09 45 78 69 |re)))...|.....Exi| |00000c30| 74 54 6f 53 68 65 6c 6c | 28 29 3b 0d 09 09 09 09 |tToShell|();.....| |00000c40| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 09 09 09 0d |..break;|........| |00000c50| 09 09 09 09 09 63 61 73 | 65 20 69 6e 43 6f 6e 74 |.....cas|e inCont| |00000c60| 65 6e 74 3a 0d 09 09 09 | 09 09 09 69 66 20 28 74 |ent:....|...if (t| |00000c70| 68 65 45 76 65 6e 74 2e | 6d 6f 64 69 66 69 65 72 |heEvent.|modifier| |00000c80| 73 20 26 20 6f 70 74 69 | 6f 6e 4b 65 79 29 0d 09 |s & opti|onKey)..| |00000c90| 09 09 09 09 09 09 7b 0d | 09 09 09 09 09 09 09 53 |......{.|.......S| |00000ca0| 65 74 43 75 72 73 6f 72 | 28 2a 47 65 74 43 75 72 |etCursor|(*GetCur| |00000cb0| 73 6f 72 28 47 52 41 42 | 42 45 52 29 29 3b 0d 09 |sor(GRAB|BER));..| |00000cc0| 09 09 09 09 09 09 4c 41 | 63 74 69 76 61 74 65 28 |......LA|ctivate(| |00000cd0| 46 41 4c 53 45 2c 20 47 | 65 74 57 52 65 66 43 6f |FALSE, G|etWRefCo| |00000ce0| 6e 28 70 61 6c 65 74 74 | 65 29 29 3b 0d 09 09 09 |n(palett|e));....| |00000cf0| 09 09 09 09 44 72 61 67 | 57 69 6e 64 6f 77 28 70 |....Drag|Window(p| |00000d00| 61 6c 65 74 74 65 2c 20 | 50 4f 49 4e 54 28 74 68 |alette, |POINT(th| |00000d10| 65 45 76 65 6e 74 2e 77 | 68 65 72 65 29 2c 20 26 |eEvent.w|here), &| |00000d20| 73 63 72 65 65 6e 42 69 | 74 73 2e 62 6f 75 6e 64 |screenBi|ts.bound| |00000d30| 73 29 3b 0d 09 09 09 09 | 09 09 09 4c 41 63 74 69 |s);.....|...LActi| |00000d40| 76 61 74 65 28 54 52 55 | 45 2c 20 47 65 74 57 52 |vate(TRU|E, GetWR| |00000d50| 65 66 43 6f 6e 28 70 61 | 6c 65 74 74 65 29 29 3b |efCon(pa|lette));| |00000d60| 0d 09 09 09 09 09 09 09 | 49 6e 69 74 43 75 72 73 |........|InitCurs| |00000d70| 6f 72 28 29 3b 0d 09 09 | 09 09 09 09 09 7d 0d 09 |or();...|.....}..| |00000d80| 09 09 09 09 09 65 6c 73 | 65 0d 09 09 09 09 09 09 |.....els|e.......| |00000d90| 09 7b 0d 09 09 09 09 09 | 09 09 53 65 74 50 6f 72 |.{......|..SetPor| |00000da0| 74 28 70 61 6c 65 74 74 | 65 29 3b 0d 09 09 09 09 |t(palett|e);.....| |00000db0| 09 09 09 47 6c 6f 62 61 | 6c 54 6f 4c 6f 63 61 6c |...Globa|lToLocal| |00000dc0| 28 26 74 68 65 45 76 65 | 6e 74 2e 77 68 65 72 65 |(&theEve|nt.where| |00000dd0| 29 3b 0d 09 09 09 09 09 | 09 09 4c 43 6c 69 63 6b |);......|..LClick| |00000de0| 28 50 4f 49 4e 54 28 74 | 68 65 45 76 65 6e 74 2e |(POINT(t|heEvent.| |00000df0| 77 68 65 72 65 29 2c 20 | 74 68 65 45 76 65 6e 74 |where), |theEvent| |00000e00| 2e 6d 6f 64 69 66 69 65 | 72 73 2c 20 47 65 74 57 |.modifie|rs, GetW| |00000e10| 52 65 66 43 6f 6e 28 70 | 61 6c 65 74 74 65 29 29 |RefCon(p|alette))| |00000e20| 3b 0d 09 09 09 09 09 09 | 09 7d 0d 09 09 09 09 09 |;.......|.}......| |00000e30| 09 62 72 65 61 6b 3b 0d | 09 09 09 09 09 7d 0d 09 |.break;.|.....}..| |00000e40| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 09 0d 09 |...break|;.......| |00000e50| 09 09 63 61 73 65 20 75 | 70 64 61 74 65 45 76 74 |..case u|pdateEvt| |00000e60| 3a 0d 09 09 09 09 42 65 | 67 69 6e 55 70 64 61 74 |:.....Be|ginUpdat| |00000e70| 65 28 70 61 6c 65 74 74 | 65 29 3b 0d 09 09 09 09 |e(palett|e);.....| |00000e80| 4c 55 70 64 61 74 65 28 | 70 61 6c 65 74 74 65 2d |LUpdate(|palette-| |00000e90| 3e 76 69 73 52 67 6e 2c | 20 47 65 74 57 52 65 66 |>visRgn,| GetWRef| |00000ea0| 43 6f 6e 28 70 61 6c 65 | 74 74 65 29 29 3b 0d 09 |Con(pale|tte));..| |00000eb0| 09 09 09 45 6e 64 55 70 | 64 61 74 65 28 70 61 6c |...EndUp|date(pal| |00000ec0| 65 74 74 65 29 3b 0d 09 | 09 09 09 62 72 65 61 6b |ette);..|...break| |00000ed0| 3b 0d 09 09 09 09 0d 09 | 09 09 63 61 73 65 20 61 |;.......|..case a| |00000ee0| 63 74 69 76 61 74 65 45 | 76 74 3a 0d 09 09 09 09 |ctivateE|vt:.....| |00000ef0| 4c 41 63 74 69 76 61 74 | 65 28 74 68 65 45 76 65 |LActivat|e(theEve| |00000f00| 6e 74 2e 6d 6f 64 69 66 | 69 65 72 73 20 26 20 61 |nt.modif|iers & a| |00000f10| 63 74 69 76 65 46 6c 61 | 67 20 3f 20 54 52 55 45 |ctiveFla|g ? TRUE| |00000f20| 20 3a 20 46 41 4c 53 45 | 2c 20 47 65 74 57 52 65 | : FALSE|, GetWRe| |00000f30| 66 43 6f 6e 28 70 61 6c | 65 74 74 65 29 29 3b 0d |fCon(pal|ette));.| |00000f40| 09 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 7d 0d |....brea|k;....}.| |00000f50| 09 09 7d 0d 09 7d 0d 00 | 00 00 00 00 00 00 00 00 |..}..}..|........| |00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000f80| 00 00 01 00 00 00 01 36 | 00 00 00 36 00 00 00 46 |.......6|...6...F| |00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000fb0| 09 70 61 6c 65 74 74 65 | 2e 63 02 00 00 00 54 45 |.palette|.c....TE| |00000fc0| 58 54 51 45 44 31 01 00 | 00 00 00 40 00 00 00 01 |XTQED1..|...@....| |00000fd0| 00 00 54 45 58 54 51 45 | 44 31 01 00 00 00 00 40 |..TEXTQE|D1.....@| |00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ff0| 00 00 9a b0 20 28 00 00 | 0e d7 00 00 01 7c 00 00 |.... (..|.....|..| |00001000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001080| 00 00 00 2a 00 09 06 4d | 6f 6e 61 63 6f 00 00 00 |...*...M|onaco...| |00001090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000010b0| 00 04 00 06 00 04 00 00 | 01 00 00 00 01 36 00 00 |........|.....6..| |000010c0| 00 36 00 00 00 46 00 00 | cc 24 01 7a 00 00 00 1c |.6...F..|.$.z....| |000010d0| 00 46 00 01 45 46 4e 54 | 00 00 00 12 45 54 41 42 |.F..EFNT|....ETAB| |000010e0| 00 00 00 1e 03 eb ff ff | 00 00 00 00 00 00 00 00 |........|........| |000010f0| 03 ec ff ff 00 00 00 2e | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+